// home_7
//Number is simple or not

#include<iostream>
bool is_simple( int );

int main()
{
	int number=0;
	std::cout << "Enter number: ";
	std::cin >> number;

	if( is_simple(number) )
	{
	std::cout << "Number is simple: " << std::endl;
	}
	else
	{
		std::cout << "Number is not simple: " << std::endl;
	}
	return 0;
}
bool is_simple( int x )
{
	bool flag=true;

	for( int i=2; i <= x/2; ++i)
	{
		if( 0 == x%i )
		{
			flag=false;
		} break;
	}
		return flag;
	}
